package dataStructure.tree;

/**
 * @author 浦希成
 * 2018/9/23 17:17
 */
public class TreeNode {
    /**
     * 根节点数据
     */
    int data;
    /**
     * 左子树
     */

    TreeNode left;
    /**
     * 右子树
     */
    TreeNode right;

    public TreeNode() {
        super();
    }
    //实例化二叉树
    public TreeNode(int data) {
        super();
        this.data = data;
        left = null;
        right = null;
    }


}

